package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("grade_model_result_sub_dtl")
public class GradeModelResultSubDtl extends Model<GradeModelResultSubDtl> {
    @ApiModelProperty(value = "物理主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty(value = "模型评分结果id")
    private Long grantModelRstId;
    @ApiModelProperty(value = "模型指标编号elementNo(一级指标)")
    private String gradeNo;
    @ApiModelProperty(value = "分数小计(一级指标)")
    private BigDecimal score;
    @ApiModelProperty(value = "调整分(一级指标)")
    private BigDecimal addScore;
}
